package com.youmu.xxessj

import android.app.Application
import com.youmu.xxessj.ut.Utils
import io.rong.imkit.RongIM
import net.gotev.uploadservice.UploadService

class App : Application() {

    init {
        instance = this
    }
    companion object {
        private var instance: App? = null

    }

    override fun onCreate() {
        super.onCreate()
        // initialize for any
        instance = this
        Utils.init(this)
        //设置将广播动作命名空间字符串
        //用于通知上传状态。
        // Gradle自动生成如下所示的适当变量。
        UploadService.NAMESPACE = BuildConfig.APPLICATION_ID
        RongIM.init(this)
    }
}